import defaultSettings from "@/settings";
import { defineStore } from "pinia";

export const useSettingsStore = defineStore("settings", () => {
  // 是否显示设置
  const settingsVisible = ref(false);

  // 标签
  const tagsView = useStorage<boolean>("tagsView", defaultSettings.tagsView);

  // 侧边栏 Logo
  const sidebarLogo = useStorage<boolean>("sidebarLogo", defaultSettings.sidebarLogo);

  //是否开启水印
  const watermarkEnabled = useStorage("watermarkEnabled", defaultSettings.watermarkEnabled);

  return {
    settingsVisible,
    watermarkEnabled,
    tagsView,
    sidebarLogo,
  };
});
